package ytdp.careagle.com.ytdp.entity;

import com.google.gson.Gson;

/**
 * Created by admin on 2017/10/10.
 */

public class BaseConfig {

    /**
     * default_city : {"id":7,"createDate":"2017-09-29T09:41:31Z","creatorId":null,"displayName":"默认城市","extension":"00974,00975","modifiedBy":null,"modifiedDate":null,"name":"VALUATION_DEFAULT_CITY","shopId":1,"template":false,"value":"浙江,杭州"}
     * identify_remind : {"id":15,"createDate":null,"creatorId":null,"displayName":"人脸识别提醒","extension":"1","modifiedBy":null,"modifiedDate":null,"name":"IDENTIFY_REMIND","shopId":1,"template":false,"value":"开启"}
     */

    private DefaultCityBean default_city;
    private IdentifyRemindBean identify_remind;

    public static BaseConfig objectFromData(String str) {

        return new Gson().fromJson(str, BaseConfig.class);
    }

    public DefaultCityBean getDefault_city() {
        return default_city;
    }

    public void setDefault_city(DefaultCityBean default_city) {
        this.default_city = default_city;
    }

    public IdentifyRemindBean getIdentify_remind() {
        return identify_remind;
    }

    public void setIdentify_remind(IdentifyRemindBean identify_remind) {
        this.identify_remind = identify_remind;
    }

    public static class DefaultCityBean {
        /**
         * id : 7
         * createDate : 2017-09-29T09:41:31Z
         * creatorId : null
         * displayName : 默认城市
         * extension : 00974,00975
         * modifiedBy : null
         * modifiedDate : null
         * name : VALUATION_DEFAULT_CITY
         * shopId : 1
         * template : false
         * value : 浙江,杭州
         */

        private int id;
        private String createDate;
        private Object creatorId;
        private String displayName;
        private String extension;
        private Object modifiedBy;
        private Object modifiedDate;
        private String name;
        private int shopId;
        private boolean template;
        private String value;

        public static DefaultCityBean objectFromData(String str) {

            return new Gson().fromJson(str, DefaultCityBean.class);
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getCreateDate() {
            return createDate;
        }

        public void setCreateDate(String createDate) {
            this.createDate = createDate;
        }

        public Object getCreatorId() {
            return creatorId;
        }

        public void setCreatorId(Object creatorId) {
            this.creatorId = creatorId;
        }

        public String getDisplayName() {
            return displayName;
        }

        public void setDisplayName(String displayName) {
            this.displayName = displayName;
        }

        public String getExtension() {
            return extension;
        }

        public void setExtension(String extension) {
            this.extension = extension;
        }

        public Object getModifiedBy() {
            return modifiedBy;
        }

        public void setModifiedBy(Object modifiedBy) {
            this.modifiedBy = modifiedBy;
        }

        public Object getModifiedDate() {
            return modifiedDate;
        }

        public void setModifiedDate(Object modifiedDate) {
            this.modifiedDate = modifiedDate;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getShopId() {
            return shopId;
        }

        public void setShopId(int shopId) {
            this.shopId = shopId;
        }

        public boolean isTemplate() {
            return template;
        }

        public void setTemplate(boolean template) {
            this.template = template;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }

    public static class IdentifyRemindBean {
        /**
         * id : 15
         * createDate : null
         * creatorId : null
         * displayName : 人脸识别提醒
         * extension : 1
         * modifiedBy : null
         * modifiedDate : null
         * name : IDENTIFY_REMIND
         * shopId : 1
         * template : false
         * value : 开启
         */

        private int id;
        private Object createDate;
        private Object creatorId;
        private String displayName;
        private String extension;
        private Object modifiedBy;
        private Object modifiedDate;
        private String name;
        private int shopId;
        private boolean template;
        private String value;

        public static IdentifyRemindBean objectFromData(String str) {

            return new Gson().fromJson(str, IdentifyRemindBean.class);
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public Object getCreateDate() {
            return createDate;
        }

        public void setCreateDate(Object createDate) {
            this.createDate = createDate;
        }

        public Object getCreatorId() {
            return creatorId;
        }

        public void setCreatorId(Object creatorId) {
            this.creatorId = creatorId;
        }

        public String getDisplayName() {
            return displayName;
        }

        public void setDisplayName(String displayName) {
            this.displayName = displayName;
        }

        public String getExtension() {
            return extension;
        }

        public void setExtension(String extension) {
            this.extension = extension;
        }

        public Object getModifiedBy() {
            return modifiedBy;
        }

        public void setModifiedBy(Object modifiedBy) {
            this.modifiedBy = modifiedBy;
        }

        public Object getModifiedDate() {
            return modifiedDate;
        }

        public void setModifiedDate(Object modifiedDate) {
            this.modifiedDate = modifiedDate;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getShopId() {
            return shopId;
        }

        public void setShopId(int shopId) {
            this.shopId = shopId;
        }

        public boolean isTemplate() {
            return template;
        }

        public void setTemplate(boolean template) {
            this.template = template;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }
}
